﻿@model  Portal.Presentation.Models.DashboardViewModel

@{
    ViewBag.Title = "Dashboard";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h1 class="page-header">Dashboard</h1>

@{if (@Model.Warnings != null && @Model.Warnings.Count() > 0)
{
    foreach (Portal.Presentation.Models.DashboardWarning warning in @Model.Warnings)
    {
        if (warning != null)
        {
            <div class="alert alert-warning">
                <strong>@warning.Header:</strong> @warning.Message
                @Html.ActionLink("   ", warning.Action, warning.Controller, null, new { @class = "glyphicon glyphicon-play" })
            </div>
        }
    }
}
else
{
    <div class="alert alert-success">
        <strong>PROFILE IS VALID:</strong> All data are completed and up to date :)
    </div>
}
}




